package com.eng.carro.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table( name = "core_delivery_places" )
public class DeliveryPlace implements Serializable {
  
  private static final long serialVersionUID = 1970757096686050294L;
  
  private Integer id;
  private String  local;

  public DeliveryPlace() { }
  
  public DeliveryPlace( Integer id ) {
	setId( id );
  }
  
  @Id
  @GeneratedValue( strategy = GenerationType.SEQUENCE )
  @Column( name = "id" )
  public Integer getId() { return id; }
  public void setId(Integer id) { this.id = id; }
  
  @Column( name = "local" )
  public String getLocal() { return local; }
  public void setLocal(String local) { this.local = local; }
}
